import java.util.regex.Matcher;
import java.util.regex.Pattern;

/**
 * 测试
 *
 * @author txw
 * @since 2020-01-16 10:25
 **/
public class TestRegular {
    private static final Pattern phone = Pattern.compile("^[1][3,4,5,7," +
            "8][0-9]{9}$");

    private static final Pattern email = Pattern.compile("^\\w+@\\w+\\.\\w+$");


    private static final Pattern any = Pattern.compile("'(.*?)'");
    public static void main(String[] args) {
        Matcher m = any.matcher("'232'=>'我的世界','322'=>'天天'");
        // ^[a-z0-9_-]{3,15} 匹配 >=3 < 15 个字符的字符串 小写字母或者数字
        // 简写字符集 大写都是非
        // //w 字母字符或者下划线
        // //d 数字
        // //s 空格、制表符、换行、换页符

        while (m.find()) {
            System.out.println(m.group());
        }
    }
}
